AUTOMAKE_OPTIONS=	foreign

BUILT_SOURCES=	ntptime.texi 
man_MANS=	ntptime-man.ps ntptime-mdoc.ps 
run_ag=		cd $(srcdir) && autogen -L $(srcdir) --writable

$(srcdir)/ntptime-man.ps: $(srcdir)/ntptime.def $(srcdir)/agman8.tpl 
	$(run_ag) -Tagman8.tpl -Lscripts -bntptime-man.ps ntptime.def

$(srcdir)/ntptime-mdoc.ps: $(srcdir)/ntptime.def $(srcdir)/agmdoc8.tpl
	$(run_ag) -Tagmdoc8.tpl -bntptime-mdoc.ps ntptime.def

$(srcdir)/ntptime.texi: $(srcdir)/ntptime.def $(srcdir)/aginfo.tpl
	$(run_ag) -Taginfo.tpl -DLEVEL=unnumberedsec ntptime.def


